Skip to main content

Monitor process system call

· One min read

Trace / Monitor process system call In Linux

Syntax
# <system call> = { open | close | read | write | ... }
strace [-e trace={<system call>[,...]}] -p <PID>

To trace apache2 process

Syntax
strace -p $(pidof -s apache2)